php object is empty

34

$arr = (array)$obj;
if (!$arr) {
    // do stuff
}
$x = new stdClass();
if( $obj !== null )
{
     // DO YOUR WORK
}

Comments

Submit
0 Comments